| Conditions | 1 |
| Total Lines | 6 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | 8 | import { Controller, Post, Body, Get, UseGuards, Req } from '@nestjs/common'; |
|
| 11 | |||
| 12 | @Post('token') |
||
| 13 | @ApiOperation({ summary: 'Exchange GitHub code for access token' }) |
||
| 14 | @ApiResponse({ status: 200, description: 'Token exchange successful' }) |
||
| 15 | 8 | async exchangeToken(@Body() tokenExchangeDto: TokenExchangeDto) { |
|
| 16 | 2 | return this.authService.exchangeGithubCode(tokenExchangeDto.code); |
|
| 17 | } |
||
| 37 |